package design.mode.model.proxy.staticproxy;

import design.mode.model.proxy.SellTickets;
import design.mode.model.proxy.TranStation;

/**
 * @author ldanniel
 * @description 代理类：代售点类
 * @date 2023/23/13:32
 * @since jdk11
 */
public class ProxyPoint implements SellTickets {
    //聚合火车站
    private TranStation tranStation = new TranStation();
    @Override
    public void sell() {
        System.out.println("火车票代售点，售卖火车票，并收取服务费");
        //通过火车站拿到火车票代售权，并执行火车票销售
        tranStation.sell();
    }
}
